#ifndef __IO_LED_H__
#define __IO_LED_H__
#include "light.h"

typedef int (*io_led_set_fn_t)(void* self, int io_level);
typedef int (*io_led_read_fn_t)(void* self, int *io_level);

typedef struct IoLed_i {
    io_led_set_fn_t io_set;
    io_led_read_fn_t io_read;
}IoLed_i;

typedef struct IoLed {
    Light_i * interface;
    IoLed_i ** io_dev;
    char state;
} IoLed;

int io_led_init(IoLed *self, IoLed_i** io_dev);

#endif
